package com.ethink.warehouse.api.info;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 辉辉 2023/1/29 13:10
 */
@Data
public class MateInventorySaleChannelChangeLogModeInfo {

    @Schema(description = "操作流水号")
    private String orderNo;

    @Schema(description = "仓库code")
    private String subWarehouseCode;

    @Schema(description = "仓库")
    private String subWarehouseName;

    @Schema(description = "变更前渠道")
    private String beforeSaleSubChannel;

    @Schema(description = "变更后渠道")
    private String afterSaleSubChannel;

    @Schema(description = "制单人")
    private String createUserName;

    @Schema(description = "审批人")
    private String auditUserName;

    @Schema(description = "制单日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date createTime;

    @Schema(description = "处理状态")
    private Integer orderStatus;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "商品编码")
    private String mateSku;

    @Schema(description = "商品名称")
    private String mateSkuName;

    @Schema(description = "变更数量")
    private Integer qty;

    @Schema(description = "库存类型")
    private Integer inventoryType;

    @Schema(description = "库存成本价")
    private BigDecimal costPrice;

    @Schema(description = "交易成本价")
    private BigDecimal exceptCostPrice;

    @Schema(description ="预计销售时间")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date exceptSaleTime;

    @Schema(description = "采购批次")
    private String purchaseCode;

    @Schema(description = "生产批次")
    private String produceCode;

    @Schema(description = "原产国")
    private String countryOfOrigin;

    @Schema(description = "生产日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date productDate;

    @Schema(description = "到期日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date expireDate;

    @Schema(description ="数据更新时间戳")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date updateTime;

}
